package tech.fangsong.client.strategy;

import io.netty.channel.ChannelHandlerContext;
import tech.fangsong.im.core.cmd.family.MESSAGE;
import tech.fangsong.im.core.protocol.ImMsg;

public class SingleChatMessageStrategy implements MessageStrategy{
    @Override
    public ImMsg received(ChannelHandlerContext channelHandlerContext, ImMsg msg) {
        return null;
    }

    @Override
    public ImMsg sending(ImMsg msg) {
        return null;
    }

    @Override
    public boolean support(ImMsg msg) {
        return msg.getFamily() == MESSAGE.FAMILY&&msg.getCmd()== MESSAGE.COMMAND.SEND.getCmd();
    }
}
